# Copyright 2010-2014 David "Alemarius Nexus" Lerch
# 
# This file is part of gtatools-gui.
#
# gtatools-gui is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# gtatools-gui is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with gtatools-gui.  If not, see <http://www.gnu.org/licenses/>.

# Additional permissions are granted, which are listed in the file
# GPLADDITIONS.

#SET(CONFIG_DIR "/etc/gtatools-gui" CACHE PATH "The configuration directory of gtatools-gui")

ADD_SUBDIRECTORY(gui)
ADD_SUBDIRECTORY(formats)

CONFIGURE_FILE(config.cmake.h "${CMAKE_CURRENT_BINARY_DIR}/gtatools-gui/config.h")

SET(SRCS ${SRCS}
    src/main.cpp src/Profile.cpp src/ProfileManager.cpp src/System.cpp
    src/Task.cpp src/EntityOpenRequest.cpp src/RegexFileFinder.cpp src/TaskFileFinder.cpp
    src/MainApplication.cpp src/Int64Validator.cpp src/UInt64Validator.cpp
    src/DisplayedEntity.cpp src/DisplayedEntityHandler.cpp src/DefaultDisplayedEntityHandler.cpp
    src/DisplayedFile.cpp src/TestWindow.cpp src/UndoDecorator.cpp src/BatchingUndoDecorator.cpp
    PARENT_SCOPE)
SET(MOC_SRCS ${MOC_SRCS}
    src/ProfileManager.h src/Profile.h src/System.h src/Task.h src/MainApplication.h
    src/Int64Validator.h src/UInt64Validator.h src/DisplayedEntity.h src/DisplayedEntityHandler.h
    src/DefaultDisplayedEntityHandler.h src/DisplayedFile.h src/TestWindow.h src/UndoDecorator.h
    src/BatchingUndoDecorator.h
    PARENT_SCOPE)
SET(UIC_SRCS ${UIC_SRCS} PARENT_SCOPE)
SET(INCS ${INCS} PARENT_SCOPE)
